public class BinaryTest{
	public static void main(String[] args){
		//二进制以0b或0B开头
		int n1 = 0b1010;
		//十进制
		int n2 = 1010;
		//八进制以0开头；
		int n3 = 01010;
		//十六进制以0x或0X开头
		int n4 = 0x10101;
		System.out.println("n1="+n1);
		System.out.println("n2="+n2);
		System.out.println("n3="+n3);
		System.out.println("n4="+n4);
	}
}